package com.team.arms.xitong.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Huazige
 * @since 2022-06-24
 */
@Getter
@Setter
@TableName("x_system_access")
@ApiModel(value = "SystemAccess对象", description = "")
public class SystemAccess implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("访问表主键")
    @TableId(value = "access_id", type = IdType.ASSIGN_ID)
    private String accessId;

    @ApiModelProperty("登录账号")
    private String username;

    @ApiModelProperty("登录ip地址")
    private String loginIpAddress;

    @ApiModelProperty("登录地点")
    private String loginPlace;

    @ApiModelProperty("登录状态")
    private String loginState;

    @ApiModelProperty("提示消息")
    private String hintMessage;

    @ApiModelProperty("访问时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "access_time",fill = FieldFill.INSERT)
    private LocalDateTime accessTime;

    @ApiModelProperty("日志编号")
    private String logId;


}
